#include "UIBase.h"

namespace Core
{
	namespace UI
	{
		class Button: public UIBase
		{
		public:
			enum ButtonState{MOUSEIN,MOUSEOUT,DOWN};
		private:
			ButtonState state;
		public:

			ButtonState GetState();
			Button(const Position& pos,const Size& size);
		
		private:
			virtual void OnMouseIn(const MouseEvent& mouse);
			virtual void OnMouseOut(const MouseEvent& mouse);
			virtual void OnMouseDown(const MouseEvent& mouse,const Devices::KeyboardEvent& keyboardMessage);
			virtual void OnMouseUp(const MouseEvent& mouse,const Devices::KeyboardEvent& keyboardMessage);
		};
	}
}